home *** CD-ROM | disk | FTP | other *** search
- on mouseDown me
- global gPauseState
- if the optionDown then
- sendSprite(7, #mUpdate, 0.75)
- sendSprite(6, #mUpdate, 6)
- exit
- else
- if the shiftDown then
- sendSprite(7, #mUpdate, 0.5)
- sendSprite(6, #mUpdate, 9)
- exit
- else
- if the commandDown then
- sendSprite(7, #mUpdate, 0.75)
- sendSprite(6, #mUpdate, 3)
- exit
- else
- if the controlDown then
- sendSprite(7, #mUpdate, 0)
- sendSprite(6, #mUpdate, 6)
- exit
- end if
- end if
- end if
- end if
- if gPauseState then
- beep()
- exit
- end if
- dragWindow()
- refreshDrinkContents(VOID, VOID)
- end
-
- on mouseUp me
- if the doubleClick then
- closePourWindow()
- end if
- end
-
- on dragWindow
- startH = (the clickLoc)[1]
- startV = (the clickLoc)[2]
- whichWindow = the activeWindow
- startRect = whichWindow.rect
- repeat while the stillDown
- updateStage()
- newRect = offset(startRect, the mouseH - startH, the mouseV - startV)
- if the activeWindow <> the stage then
- tell the stage
- checkElapsedTime()
- move_dummy(whichWindow, newRect)
- end tell
- end if
- end repeat
- if whichWindow <> the stage then
- tell the stage
- drop_window(whichWindow, newRect)
- end tell
- end if
- end
-